package by.andronix.logger
{
	import fr.kapit.logger.KapITLogger;
	import fr.kapit.puremvc.as3.notifications.PureMVCDebugNotification;
	import mx.core.mx_internal;
	import mx.logging.targets.LineFormattedTarget;
	
	
	use namespace mx_internal;
	
	public class KPPureMVCConsoleTarget extends LineFormattedTarget
	{
		public function KPPureMVCConsoleTarget()
		{
			super();
		}
	
	    override mx_internal function internalLog(message:String):void
	    {
			
			var note:PureMVCDebugNotification = new PureMVCDebugNotification(
													{message: message }, 
													'Generic log'
													);
			
			KapITLogger.getInstance().logEvent(note);	  
	        
	    }
		
	}
}